From: Florian Eckert Date: Thu, 6 Mar 2025 09:32:56 +0000 (+0100) Subject: luci-base: replace css right class with button-row X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=959fd4479580ddbe0f86de351d06226027a351a0;p=project%2Fluci.git luci-base: replace css right class with button-row These were forgotten when refactoring and should also get the css class 'button-row' Signed-off-by: Florian Eckert --- diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 1dc5ee15bf..cbb28a3bcf 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -4639,7 +4639,7 @@ const UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { E('div', { 'class': 'uci-change-legend-label' }, [ E('var', {}, E('del', ' ')), ' ', _('Option removed') ])]), E('br'), list, - E('div', { 'class': 'right' }, [ //button-row? + E('div', { 'class': 'button-row' }, [ E('button', { 'class': 'btn cbi-button', 'click': UI.prototype.hideModal @@ -4755,7 +4755,7 @@ const UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { UI.prototype.changes.displayStatus('warning', [ E('h4', _('Configuration changes have been rolled back!')), E('p', _('The device could not be reached within %d seconds after applying the pending changes, which caused the configuration to be rolled back for safety reasons. If you believe that the configuration changes are correct nonetheless, perform an unchecked configuration apply. Alternatively, you can dismiss this warning and edit changes before attempting to apply again, or revert all pending changes to keep the currently working configuration state.').format(L.env.apply_rollback)), - E('div', { 'class': 'right' }, [ + E('div', { 'class': 'button-row' }, [ E('button', { 'class': 'btn', 'click': L.bind(UI.prototype.changes.displayStatus, UI.prototype.changes, false)